package fr.obsmip.sedoo.client.activity;

import fr.sedoo.commons.client.mvp.AuthenticatedClientFactory;
import fr.sedoo.commons.client.news.activity.MessageEditActivity;
import fr.sedoo.commons.client.news.place.MessageEditPlace;

public class RBVMessageEditActivity extends MessageEditActivity{

	public RBVMessageEditActivity(MessageEditPlace place,
			AuthenticatedClientFactory clientFactory) {
		super(place, clientFactory);
	}

	@Override
	protected boolean isValidUser() {
		if (isLoggedUser())
		{
			return ((AuthenticatedClientFactory) clientFactory).getUserManager().getUser().isAdmin();
		}
		else
		{
			return false;
		}
	}

}
